import { BasePageDto } from '@/common/base/base.dto';
import { ApiProperty, ApiPropertyOptional, OmitType, PartialType } from '@nestjs/swagger';
import {
  IsArray,
  IsInt,
  IsNotEmpty,
  IsOptional,
  IsString,
  IsUUID,
  Max,
  Min,
} from 'class-validator';

export class RoleAdminAllDto {
}

export class RoleAdminCreateDto {
  @IsNotEmpty()
  @ApiProperty()
  @IsString()
  name: string;

  @IsOptional()
  @ApiPropertyOptional()
  @IsString()
  desc?: string;

  @IsOptional()
  @ApiPropertyOptional()
  @IsArray()
  resourceUuids?: string[];
}

export class RoleAdminUpdateDto extends PartialType(RoleAdminCreateDto) {}
